package com.gang.mars.basic.generictype.demo2;

/**
 * 泛型类
 * @author gang.chen
 * @since  2021/7/13 12:19
 */
public class Apple06 implements Apple05<String,Integer> {

    @Override
    public Integer getResult1(String s) {
        if (s.equals("gang.chen")){
            return 15;
        }
        return 0;
    }

    @Override
    public Integer getResult2(String s) {
        if (s.equals("lei.chen")){
            return 25;
        }
        return 0;
    }
}
